package com.pactera.asmp.server.pojo;

import java.time.LocalDateTime;
import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import lombok.Data;

@Data
public class ProductionLineInfo {

    @NotNull(message ="项目ID不能为空")
    private Integer projectId;

    private String projectName;

    private String productionTool;

    private String productionUrl;

    @Valid
    private List<ProductionLineVo> productionLineVos;

    @Data
    public static class ProductionLineVo{
        private Integer id;

        @NotNull(message ="流水线名称不能为空")
        private String jobName;

        @NotNull(message ="流水线url不能为空")
        private String jobUrl;

        private String downloadUrl;

        private String jobVersion;

        private String updateContent;

        private Integer projectId;

        private Integer subscribeStatus;

        @NotNull(message ="项目模块id不能为空")
        private Integer projectModuleId;

        private LocalDateTime createTime;

        private LocalDateTime updateTime;

        private Integer createUid;

        private Integer updateUid;

        private String scriptIds;

        private String projectModuleName;
    }
}
